<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>畜牧源物联平台</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">
    <style type="text/css">

        .logoBox img {
            width: 42px;
            margin-right: 12px;
        }

        .infoBox {
            margin-left: 6px;
        }

        .infoBox img {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            margin-right: 6px;
        }

    </style>

</head>
<body class="fixed-sidebar full-height-layout gray-bg skin-2" style="overflow: hidden">
<div id="wrapper">
    <!--左侧导航开始-->
    <nav class="navbar-default navbar-static-side" role="navigation" style="padding-top: 60px;box-shadow: 0px 0px 1px;">
        <div class="logoBox">
            <img alt="image" src="img/logo.png"/>
            <span>畜牧源物联平台</span>
        </div>
        <div class="nav-close">
            <i class="fa fa-times-circle"></i>
        </div>
        <div class="sidebar-collapse">
            <ul class="nav" id="side-menu">
                <!--左侧菜单栏-->
                <li th:each="menu : ${menus}">
                    <a href="#">
                        <i class="fa fa fa-bar-chart-o" th:class="${menu.attributes.icon}"></i>
                        <span class="nav-label" th:text="${menu.text}"></span>
                        <span class="fa arrow"></span>
                    </a>
                    <ul class="nav nav-second-level">
                        <li th:each="cmenu : ${menu.children}">
                            <a th:class="${'J_menuItem '+cmenu.attributes.icon}" th:text="${'&nbsp;&nbsp;'+cmenu.text}"
                               th:href="${cmenu.attributes.url}"></a>
                        </li>
                    </ul>
                </li>

            </ul>
        </div>
    </nav>
    <!--左侧导航结束-->
    <!--右侧部分开始-->
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <div class="row nav-row">
            <nav class="navbar navbar-static-top" role="navigation" id="nav"
                 style="margin-bottom: 0">
                <ul class=" navbar-top-links navbar-right">
                    <li class="hidden-xs" shiro:hasPermission="sys:doc:guidesDco">
                        <a href="./doc/使用手册.pdf" target="_Blank">
                            <i class="fa fa-rss-square"></i> 使用手册
                        </a>
                    </li>
                    <li class="hidden-xs">
                        <a href="./doc/有源标签基站数据接口文档.pdf" target="_Blank" class="">
                            <i class="fa fa-rss-square"></i> 开放接口文档
                        </a>
                    </li>

                    <li class="dropdown" id="trigger_one" shiro:hasPermission="oa:notify:self">
                        <a class="dropdown-toggle count-info" onclick="top.open('oa/notify/selfNotify')"  href="javascript:void(0)" >
                            <i class="fa fa-envelope"></i>
                            <span class="label label-warning">{{total}}</span>通知公告
                        </a>
                        <a style="display: none" class="J_menuItem" href="oa/notify/selfNotify">  <strong class="new">通知公告</strong> </a>
                    </li>

                    <li class="hidden-xs">
                        <a @click="personal" href="#" >
                            <i class="fa fa-id-card"></i>
                            <span th:text="${session.sysUser.name}"></span>
                        </a>
                    </li>

                </ul>
            </nav>
        </div>
        <div class="row content-tabs">

            <button class="roll-nav roll-left navbar-minimalize">
                <i class="fa fa-bars"></i>
            </button>

            <button class="roll-nav roll-left1 J_tabLeft">
                <i class="fa fa-backward"></i>
            </button>


            <nav class="page-tabs J_menuTabs">
                <div class="page-tabs-content">
                    <!--<a class="active J_menuTab" data-id="templates/animal/index.html">首页</a>-->
                </div>
            </nav>
            <button class="roll-nav roll-right J_tabRight">
                <i class="fa fa-forward"></i>
            </button>
            <div class="btn-group roll-nav roll-right">
                <button class="dropdown J_tabClose" data-toggle="dropdown">
                    关闭操作<span class="caret"></span>
                </button>
                <ul role="menu" class="dropdown-menu dropdown-menu-right">
                    <li class="J_tabCloseAll"><a>关闭全部选项卡</a></li>
                    <li class="J_tabCloseOther"><a>关闭其他选项卡</a></li>
                </ul>
            </div>
            <a href="logout" class="roll-nav roll-right J_tabExit"><i
                    class="fa fa fa-sign-out"></i> 退出</a>
        </div>


        <div class="row J_mainContent" id="content-main">
            <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="" th:src="@{/main}" frameborder="0" data-id="index_v1.html" seamless></iframe>
        </div>

        <div class="footer">
            <div class="pull-right">畜牧源物联平台</div>
        </div>
    </div>
    <!--右侧部分结束-->
</div>
<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="js/plugins/layer/layer.min.js"></script>
<!-- 自定义js -->
<script src="js/app.js?v=4.1.0"></script>
<script type="text/javascript" src="js/contabs.js"></script>
<!-- 第三方插件 -->
<script src="js/plugins/pace/pace.min.js"></script>
<!-- vue -->
<script type="text/javascript" src="js/vue.min.js">

</script>
<script src="js/appjs/oa/webSocket/sockjs.min.js"></script>
<script src="js/appjs/oa/webSocket/stomp.min.js"></script>
<!-- Toastr script -->
<script src="js/plugins/toastr/toastr.min.js"></script>
<script src="js/appjs/index.js"></script>
<script type="text/javascript">
    var ctx = "[[${#request.getContextPath()}]]";
    var wrapper = new Vue({
        el: '#wrapper',
        data: {
            total: '',
            rows: '',
        },
        methods: {
            notify: function () {
                $.getJSON(ctx + '/oa/notify/message', function (r) {
                    wrapper.total = r.total;
                    wrapper.rows = r.rows;
                });
            },
            personal: function () {
                layer.open({
                    type: 2,
                    title: '个人信息',
                    shadeClose: true, // 点击遮罩关闭层
                    area: ['700px', '500px'],
                    content: ctx + '/sys/user/personal'
                });
            }
        },
        created: function () {
            this.notify()
        }
    });
    // function selfNotify(){
    //     top.open('oa/notify/selfNotify');
    // }
</script>
</body>
</html>
